/**
 * 预约日历和时间表组件样式
 *
 * 包含：
 * - 日历组件样式
 * - 时间表组件样式
 * - 拖拽交互样式
 * - 响应式设计
 * - 动画效果
 */

/* =============================================================================
   日历组件样式
   ============================================================================= */

.reservation-calendar {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* 日历头部 */
.calendar-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.calendar-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.calendar-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    min-width: 200px;
    text-align: center;
}

.btn-nav {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.calendar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.view-toggle {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 4px;
    display: flex;
}

.view-toggle .btn {
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.view-toggle .btn.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* 日历主体 */
.calendar-body {
    padding: 1.5rem;
}

.calendar-view {
    transition: opacity 0.3s ease;
}

/* 月视图 */
.calendar-grid {
    display: flex;
    flex-direction: column;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #f8f9fa;
}

.weekday {
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    color: #495057;
    border-right: 1px solid #e9ecef;
}

.weekday:last-child {
    border-right: none;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: repeat(6, 1fr);
}

.calendar-day {
    position: relative;
    min-height: 100px;
    padding: 0.5rem;
    border-right: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.calendar-day:hover {
    background: #f8f9fa;
}

.calendar-day:last-child {
    border-right: none;
}

.calendar-day.other-month {
    background: #f8f9fa;
    color: #adb5bd;
}

.calendar-day.today {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border: 2px solid #2196f3;
}

.calendar-day.selected {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.calendar-day.non-work-day {
    background: #fff3cd;
}

.calendar-day.has-reservations::after {
    content: '';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: #28a745;
    border-radius: 50%;
}

.day-number {
    font-size: 1.1rem;
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}

.mini-schedule {
    display: flex;
    gap: 2px;
    margin-top: 0.5rem;
}

.mini-reservation {
    width: 100%;
    height: 4px;
    border-radius: 2px;
    opacity: 0.8;
}

.mini-more {
    font-size: 0.7rem;
    color: #6c757d;
    margin-left: auto;
}

/* 周视图 */
.week-grid {
    display: flex;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.time-axis {
    min-width: 80px;
    background: #f8f9fa;
    border-right: 1px solid #e9ecef;
}

.time-label {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    color: #6c757d;
    border-bottom: 1px solid #e9ecef;
}

.day-column {
    flex: 1;
    border-right: 1px solid #e9ecef;
    position: relative;
}

.day-column:last-child {
    border-right: none;
}

.day-column.today .day-header {
    background: #2196f3;
    color: white;
}

.day-column.non-work-day {
    background: #f8f9fa;
}

.day-header {
    background: #e9ecef;
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
}

.day-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.day-date {
    font-size: 1.2rem;
    font-weight: bold;
}

.day-schedule {
    position: relative;
    height: 720px; /* 12小时 * 60px */
    overflow: hidden;
}

.schedule-event {
    position: absolute;
    left: 4px;
    right: 4px;
    border-radius: 4px;
    padding: 0.5rem;
    color: white;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.schedule-event:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.event-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-time {
    font-size: 0.75rem;
    opacity: 0.9;
}

/* 时间表面板 */
.schedule-panel {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
}

.schedule-header {
    background: #f8f9fa;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.schedule-header h4 {
    margin: 0;
    color: #2c3e50;
}

.schedule-date {
    color: #6c757d;
    font-size: 0.9rem;
}

.schedule-body {
    padding: 1.5rem;
}

.schedule-placeholder {
    text-align: center;
    color: #6c757d;
    padding: 3rem;
    font-style: italic;
}

/* 时间表网格 */
.schedule-grid {
    display: flex;
    flex-direction: column;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.schedule-header-row {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.time-header {
    width: 80px;
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    color: #495057;
    border-right: 1px solid #e9ecef;
}

.table-header {
    flex: 1;
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    color: #495057;
    border-right: 1px solid #e9ecef;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.table-header:hover {
    background: #e9ecef;
}

.table-header:last-child {
    border-right: none;
}

.schedule-row {
    display: flex;
    border-bottom: 1px solid #f8f9fa;
}

.time-cell {
    width: 80px;
    padding: 0.5rem;
    text-align: center;
    font-size: 0.875rem;
    color: #6c757d;
    border-right: 1px solid #e9ecef;
    background: #f8f9fa;
}

.time-slot {
    flex: 1;
    min-height: 30px;
    border-right: 1px solid #e9ecef;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.time-slot:hover {
    background: #e3f2fd;
}

.time-slot:last-child {
    border-right: none;
}

.time-slot.occupied {
    background: #ffebee;
    cursor: not-allowed;
}

.time-slot.selected {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.time-slot.conflict {
    background: linear-gradient(135deg, #ff5722, #f44336);
    color: white;
}

.time-slot.drag-selecting {
    background: linear-gradient(135deg, #4caf50, #8bc34a);
    color: white;
}

.time-slot.drag-start {
    background: linear-gradient(135deg, #2196f3, #03a9f4);
    color: white;
}

.reservation-info {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 图例 */
.calendar-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6c757d;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

.legend-color.available {
    background: #e3f2fd;
    border: 1px solid #2196f3;
}

.legend-color.occupied {
    background: #ffebee;
    border: 1px solid #f44336;
}

.legend-color.selected {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.legend-color.conflict {
    background: linear-gradient(135deg, #ff5722, #f44336);
}

/* =============================================================================
   时间表组件样式
   ============================================================================= */

.reservation-schedule {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* 工具栏 */
.schedule-toolbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.toolbar-left,
.toolbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.view-selector {
    display: flex;
    gap: 0.5rem;
}

.date-navigator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.current-date {
    min-width: 200px;
    text-align: center;
    font-weight: 600;
}

.zoom-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.zoom-level {
    min-width: 50px;
    text-align: center;
    font-size: 0.875rem;
}

/* 时间表容器 */
.schedule-container {
    flex: 1;
    display: flex;
    overflow: hidden;
}

.schedule-sidebar {
    width: 200px;
    background: #f8f9fa;
    border-right: 1px solid #e9ecef;
    overflow-y: auto;
}

.schedule-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.schedule-header {
    background: #fff;
    border-bottom: 1px solid #e9ecef;
    padding: 1rem;
}

.schedule-body {
    flex: 1;
    position: relative;
    overflow: auto;
}

/* 侧边栏 */
.sidebar-content {
    padding: 1rem;
}

.time-axis,
.tables-list {
    margin-bottom: 2rem;
}

.time-header,
.tables-header {
    font-weight: 600;
    color: #495057;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
}

.table-item {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.table-item:hover {
    background: #e3f2fd;
    border-color: #2196f3;
}

.table-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.table-status {
    font-size: 0.875rem;
    color: #6c757d;
}

.table-status.available {
    color: #28a745;
}

.table-status.maintenance {
    color: #ffc107;
}

.table-status.occupied {
    color: #dc3545;
}

.table-status.disabled {
    color: #6c757d;
}

/* 时间表头部 */
.day-column-header {
    flex: 1;
    text-align: center;
    padding: 1rem;
    border-right: 1px solid #e9ecef;
    transition: background-color 0.3s ease;
}

.day-column-header:hover {
    background: #f8f9fa;
}

.day-column-header.today {
    background: #e3f2fd;
    color: #1976d2;
    font-weight: 600;
}

.day-column-header:last-child {
    border-right: none;
}

/* 时间表网格 */
.schedule-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.hour-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: #e9ecef;
    z-index: 1;
}

.hour-line:nth-child(2n) {
    background: #dee2e6;
}

/* 事件容器 */
.schedule-events {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
}

.schedule-event {
    position: absolute;
    border-radius: 6px;
    padding: 0.5rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.schedule-event:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    z-index: 20;
}

.schedule-event.dragging {
    z-index: 30;
    transform: rotate(2deg);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.schedule-event.resizing {
    z-index: 30;
}

.schedule-event.temp-event {
    background: linear-gradient(135deg, #4caf50, #8bc34a) !important;
    opacity: 0.8;
    border-style: dashed;
}

.schedule-event.selected {
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.3);
}

/* 事件内容 */
.event-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-time {
    font-size: 0.75rem;
    opacity: 0.9;
    margin-bottom: 0.25rem;
}

.event-coach {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* 调整大小手柄 */
.resize-handle {
    position: absolute;
    left: 0;
    right: 0;
    height: 6px;
    cursor: ns-resize;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.resize-handle-top {
    top: -3px;
}

.resize-handle-bottom {
    bottom: -3px;
}

.schedule-event:hover .resize-handle {
    opacity: 1;
}

.resize-handle::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 2px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 1px;
}

/* 事件操作 */
.event-actions {
    position: absolute;
    top: 4px;
    right: 4px;
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.schedule-event:hover .event-actions {
    opacity: 1;
}

.btn-event-action {
    width: 20px;
    height: 20px;
    border: none;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    transition: all 0.3s ease;
}

.btn-event-action:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

/* 小地图 */
.schedule-minimap {
    width: 200px;
    background: #f8f9fa;
    border-left: 1px solid #e9ecef;
    padding: 1rem;
}

.minimap-content {
    height: 100%;
    position: relative;
}

.minimap-title {
    font-weight: 600;
    color: #495057;
    margin-bottom: 1rem;
    text-align: center;
}

.minimap-timeline {
    position: absolute;
    left: 0;
    top: 30px;
    bottom: 0;
    width: 30px;
}

.minimap-hour {
    position: absolute;
    font-size: 0.7rem;
    color: #6c757d;
}

.minimap-density {
    position: absolute;
    left: 35px;
    right: 0;
    top: 30px;
    bottom: 0;
}

.density-bar {
    position: absolute;
    left: 0;
    right: 0;
    background: #667eea;
    border-radius: 2px;
}

.current-view-indicator {
    position: absolute;
    left: 35px;
    right: 0;
    border: 2px solid #2196f3;
    background: rgba(33, 150, 243, 0.1);
    border-radius: 4px;
    pointer-events: none;
}

/* 状态样式 */
.schedule-event.pending {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
}

.schedule-event.confirmed {
    background: linear-gradient(135deg, #17a2b8, #138496);
}

.schedule-event.completed {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.schedule-event.cancelled {
    background: linear-gradient(135deg, #dc3545, #c82333);
    opacity: 0.7;
}

/* 拖拽预览 */
.drag-preview {
    position: absolute;
    background: rgba(33, 150, 243, 0.3);
    border: 2px dashed #2196f3;
    border-radius: 6px;
    pointer-events: none;
    z-index: 25;
}

/* 冲突提示 */
.conflict-warning {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ff5722;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    pointer-events: none;
    z-index: 100;
    animation: conflictPulse 1s infinite alternate;
}

@keyframes conflictPulse {
    0% { opacity: 0.8; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
}

/* 加载状态 */
.schedule-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #6c757d;
    z-index: 50;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e9ecef;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* =============================================================================
   响应式设计
   ============================================================================= */

@media (max-width: 1200px) {
    .schedule-sidebar {
        width: 150px;
    }

    .table-item {
        padding: 0.5rem;
    }

    .schedule-minimap {
        width: 150px;
    }
}

@media (max-width: 992px) {
    .calendar-header {
        flex-direction: column;
        gap: 1rem;
    }

    .schedule-sidebar {
        width: 120px;
    }

    .schedule-minimap {
        display: none;
    }

    .toolbar-left,
    .toolbar-right {
        flex-direction: column;
        gap: 0.5rem;
    }

    .schedule-toolbar {
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    .calendar-header {
        padding: 1rem;
    }

    .calendar-title {
        font-size: 1.25rem;
        min-width: auto;
    }

    .calendar-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .calendar-days {
        grid-template-rows: repeat(6, 80px);
    }

    .calendar-day {
        min-height: 80px;
        padding: 0.25rem;
    }

    .day-number {
        font-size: 1rem;
    }

    .schedule-container {
        flex-direction: column;
    }

    .schedule-sidebar {
        width: 100%;
        height: 200px;
        border-right: none;
        border-bottom: 1px solid #e9ecef;
    }

    .sidebar-content {
        display: flex;
        gap: 2rem;
        overflow-x: auto;
    }

    .time-axis,
    .tables-list {
        min-width: 150px;
        margin-bottom: 0;
    }

    .schedule-header {
        padding: 0.75rem;
    }

    .day-column-header {
        padding: 0.75rem;
    }

    .schedule-event {
        font-size: 0.75rem;
        padding: 0.25rem;
    }

    .event-title {
        font-size: 0.75rem;
    }

    .event-time,
    .event-coach {
        font-size: 0.7rem;
    }

    .schedule-grid .time-slot {
        min-height: 25px;
    }
}

@media (max-width: 576px) {
    .calendar-body {
        padding: 1rem;
    }

    .schedule-toolbar {
        flex-direction: column;
        gap: 1rem;
    }

    .toolbar-left,
    .toolbar-right {
        width: 100%;
        justify-content: center;
    }

    .calendar-grid {
        border: none;
    }

    .calendar-day {
        border: 1px solid #e9ecef;
        border-radius: 4px;
        margin: 2px;
    }

    .calendar-legend {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .legend-item {
        justify-content: center;
    }

    .schedule-header-row {
        font-size: 0.875rem;
    }

    .time-header,
    .table-header {
        padding: 0.5rem;
    }

    .time-cell {
        padding: 0.25rem;
        font-size: 0.75rem;
    }

    .schedule-row .time-slot {
        min-height: 20px;
        font-size: 0.7rem;
    }
}

/* =============================================================================
   打印样式
   ============================================================================= */

@media print {
    .reservation-calendar,
    .reservation-schedule {
        box-shadow: none;
        border: 1px solid #ccc;
    }

    .calendar-header,
    .schedule-toolbar {
        background: #f8f9fa !important;
        color: #333 !important;
        -webkit-print-color-adjust: exact;
    }

    .btn-nav,
    .calendar-actions,
    .toolbar-right {
        display: none;
    }

    .schedule-events .event-actions {
        display: none;
    }

    .resize-handle {
        display: none;
    }

    .schedule-minimap {
        display: none;
    }

    .calendar-day,
    .schedule-event {
        break-inside: avoid;
    }
}

/* =============================================================================
   深色主题支持
   ============================================================================= */

@media (prefers-color-scheme: dark) {
    .reservation-calendar,
    .reservation-schedule {
        background: #1a1a1a;
        color: #e0e0e0;
    }

    .calendar-grid,
    .schedule-grid {
        border-color: #404040;
    }

    .calendar-day {
        background: #2a2a2a;
        border-color: #404040;
    }

    .calendar-day:hover {
        background: #3a3a3a;
    }

    .calendar-day.other-month {
        background: #1a1a1a;
        color: #666;
    }

    .weekday,
    .time-label,
    .table-header,
    .time-header {
        background: #2a2a2a;
        color: #e0e0e0;
        border-color: #404040;
    }

    .time-slot:hover {
        background: #404040;
    }

    .schedule-sidebar,
    .schedule-minimap {
        background: #2a2a2a;
        border-color: #404040;
    }

    .table-item {
        background: #1a1a1a;
        border-color: #404040;
        color: #e0e0e0;
    }

    .table-item:hover {
        background: #3a3a3a;
    }
}

/* =============================================================================
   动画效果
   ============================================================================= */

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% { transform: translate3d(0, 0, 0); }
    40%, 43% { transform: translate3d(0, -5px, 0); }
    70% { transform: translate3d(0, -3px, 0); }
    90% { transform: translate3d(0, -2px, 0); }
}

.calendar-view {
    animation: fadeIn 0.3s ease-out;
}

.schedule-event {
    animation: fadeIn 0.2s ease-out;
}

.calendar-day.selected {
    animation: bounce 0.6s ease-out;
}

.time-slot.selected {
    animation: fadeIn 0.2s ease-out;
}

/* 平滑滚动 */
.schedule-body {
    scroll-behavior: smooth;
}

/* 聚焦样式 */
.calendar-day:focus,
.time-slot:focus,
.schedule-event:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* 用户选择禁用（拖拽时） */
.no-select {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* 工具提示 */
.tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    z-index: 1000;
    pointer-events: none;
    white-space: nowrap;
}

.tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.8);
}